class Solution:
    def smallestNumber(self, n: int) -> int:
        res = 0
        for i in range(10):
            res += pow(2,i)
            if res >= n:
                return res